<template>
  <div v-if="props.tags && props.tags.length > 0" class="tag-box">
    <span v-for="(item, index) in props.tags" :key="index" class="tag">{{ item.name }}</span>
  </div>
</template>

<script setup lang="ts">
  import { defineProps } from 'vue'

  const props = defineProps({
    tags: Object
  })
</script>

<style lang="scss" scoped>
  .tag-box {
    margin: -5px;
    .tag {
      display: inline-block;
      margin: 5px;
      padding: 4px;
      border: 1px solid #eaeaea;
      font-size: 14px;
      font-weight: 300;
      color: #848484;
    }
  }
</style>
